import request from '@/utils/request'

export function getVideoList(query) {
  return request({
    url: '/knowledge/video/getList',
    method: 'post',
    data: query
  })
}

export function getVideoDetail(id) {
  return request({
    url: '/knowledge/video/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByVideoID(id) {
  return request({
    url: '/knowledge/video/change-status',
    method: 'post',
    data: id
  })
}

export function saveVideo(formdata) {
  return request({
    url: '/knowledge/video/save',
    method: 'post',
    data: formdata
  })
}

export function deleteVideoByID(id) {
  return request({
    url: '/knowledge/video/delete',
    method: 'post',
    data: id
  })
}
export function removeVideoByID(id) {
  return request({
    url: '/knowledge/video/remove',
    method: 'post',
    data: id
  })
}

export function fetchVideoAvabile() {
  return request({
    url: '/knowledge/video/getAvailable',
    method: 'post'
  })
}
